
const host = '192.168.1.22'
const hostA = '192.168.1.22'
const hostM = '192.168.1.22'
const hostO = '192.168.1.22'

// const host = 'zehui.aikaimen.com'
// const hostA = 'zehui.aikaimen.com'
// const hostM = 'zehui.aikaimen.com'
// const hostO = 'zehui.aikaimen.com'

// const miniProgramAdminBase = 'https://' + hostM + '/api'//线上服务器
// const miniProgramAdminBases = 'https://' + hostM + '/xiaochengxu'//线上物流接口地址
// export const imageBaseUrl = 'https://' + hostM + '/images/'//线上图片地址
// export const uploadImageBaseUrl = 'https://' + hostM + '/xiaochengxu/image/'//线上上传图片地址


const miniProgramAdminBase = 'http://' + hostM + '/ikaimen-xiaochengxu-admin/api'//线下服务器
export const imageBaseUrl = 'http://' + hostM + '/ikaimen-xiaochengxu-admin/images/'//线下图片地址
const miniProgramAdminBases = 'http://' + hostM + '/ikaimen-xiaochengxu-admin/xiaochengxu'//线下物流接口地址
export const uploadImageBaseUrl = 'https://' + hostM + '/ikaimen-xiaochengxu-admin/xiaochengxu/image/'//线下上传图片地址


export const allActivities = miniProgramAdminBase + '/activity/findAll'//所有活动地址
export const loadCities = miniProgramAdminBase + '/findCityList/findAllArea'//加载城市列表
export const carousel = miniProgramAdminBase + '/sowing/findAll'//轮播
export const findGoodsByPlatform = miniProgramAdminBase + '/platformCategory/findAllProduct'//根据平台id查商品
export const findGoodsByActivity = miniProgramAdminBase + '/activity/findActivityProduct'//根据活动id查商品
export const getAllPlatform = miniProgramAdminBase + '/platformCategory/findAll'//查询所有平台类目
export const getAllProductByLabel = miniProgramAdminBase + '/product/findAll'//根据条件查询商品列表
export const collectionListByType = miniProgramAdminBase + '/userCollection/findAll'//查询收藏列表
export const feedbackQuery = miniProgramAdminBase + '/suggestionFeedbackType/findAll'//查询反馈
export const saveUser = miniProgramAdminBase + '/user/save'//保存用户
export const shopClassify = miniProgramAdminBase + '/categoryInShop/findAll'//查询所有店铺分类
export const loadGoddsByShopClassify = miniProgramAdminBase + '/categoryInShop/findAllProductByCategoryInShopId'//根据店铺查商品
export const postUserInfo = miniProgramAdminBase + '/wx/login'//保存用户信息
export const getCouponList = miniProgramAdminBase + '/vouchers/findAll'//获取优惠券列表
export const queryCoupon = miniProgramAdminBase + '/vouchers/findById'//根据id查询优惠券
export const getCoupon = miniProgramAdminBase + '/userGetVouchers/add'//根据id查询优惠券
export const getUserCouponList = miniProgramAdminBase + '/userGetVouchers/findAll'//获取用户名下优惠券表
export const goodsDateils = miniProgramAdminBase + '/product/findById'//根据商品id查商品
export const goodsCommentCount = miniProgramAdminBase + '/orderEval/findOrderEvalScoreCount'//查询商品评论数量
export const goodsComment = miniProgramAdminBase + '/orderEval/findByProductId'
export const addressList = miniProgramAdminBase + '/userAddrees/findByUserId'//根据用户id查找地址
export const addAddress = miniProgramAdminBase + '/userAddrees/add'
export const deleteAddress = miniProgramAdminBase + '/userAddrees/delete'
export const editAddress = miniProgramAdminBase + '/userAddrees/update'
export const collectionProduct = miniProgramAdminBase + '/userCollection/add'
export const deleteCollectionProduct = miniProgramAdminBase + '/userCollection/delete'
export const userCollectionFindAll = miniProgramAdminBase + '/userCollection/findAll'
export const cartList = miniProgramAdminBase + '/shoppingCart/listAll'//查询购物车所有数据
export const addToCart = miniProgramAdminBase + '/shoppingCart/add'
export const changeCartItemCount = miniProgramAdminBase+'/shoppingCart/update'
export const deleteCartList = miniProgramAdminBase + '/shoppingCart/deleteManys'
export const deleteOrders = miniProgramAdminBase + '/order/deleteFalse'//删除订单
export const orderById = miniProgramAdminBase + '/order/findById'
export const orderList = miniProgramAdminBase + '/order/findAll'
export const orderCounts = miniProgramAdminBase + '/order/findOrderStateCountByUserId'
export const orderSign = miniProgramAdminBase + '/order/getSign'
export const orderAdd = miniProgramAdminBase + '/order/add'
export const orderCancel = miniProgramAdminBase + '/order/cancel'
export const orderAddress = miniProgramAdminBase + '/order/getOrderAddressSnapshot'
export const orderLogistics = miniProgramAdminBases + '/order/findOrderPost'
export const orderComment = miniProgramAdminBase + '/orderEval/add'
export const orderCommentImageUpload = uploadImageBaseUrl + 'orderEvalImage/upload'
export const orderReceiveConfirm = miniProgramAdminBase + '/order/conform'
export const feedback = miniProgramAdminBase + '/suggestionFeedback/add'
export const queryHotWords = miniProgramAdminBase + '/searchKeyword/forHome'
export const queryHotWordsAll = miniProgramAdminBase + '/searchKeyword/findAll'
export const orderPaySign = 'https://zehuipay.aikaimen.com/auth/get-digest'
export const orderPay = 'https://zehuipay.aikaimen.com/app/payRequest/getPayParams'
